
// 订单服务admin

// import request from '@/utils/request'
import axios from "axios";
// 查询
export function searchServices(obj) {

  return axios.get("/admin/orderServices/all", { params: obj }).then(({ data }) => {
    return data;
  });
  // return request({
  //   url:"/admin/orderServices/all",
  //   method:'get',
  //   data:{ params: obj }
  // })

}


// 修改
export function putServices(id,obj) {
  return axios.put(`/admin/orderServices/${id}`, obj).then(({ data }) => {
    return data;
  });
  // return request({
  //   url:`/admin/orderServices/${id}`,
  //   method:'put',
  //   data: obj 
  // })

}


// 增加
export function addServices(obj) {
  return axios.get("/admin/orderServices", obj).then(({ data }) => {
    return data;
  });
  // return request({
  //   url:"/admin/orderServices",
  //   method:'get',
  //   data: obj 
  // })

}

// 删除
export function delServices(id) {
  return axios.delete(`/admin/orderServices/${id}`).then(({ data }) => {
    return data;
  });
  // return request({
  //   url:`/admin/orderServices/${id}`,
  //   method:'delete',
    
  // })

}
